package com.tosit.bmx.mapper;

import com.tosit.bmx.domian.*;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TemporaryMapper {
    long countByExample(TemporaryExample example);

    int deleteByExample(TemporaryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Temporary record);

    int insertSelective(Temporary record);

    List<Temporary> selectByExample(TemporaryExample example);

    Temporary selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Temporary record, @Param("example") TemporaryExample example);

    int updateByExample(@Param("record") Temporary record, @Param("example") TemporaryExample example);

    int updateByPrimaryKeySelective(Temporary record);

    int updateByPrimaryKey(Temporary record);

    Integer deletes(@Param("userId") Integer userId);


    Integer insertByTempSubject(@Param("list") List<TempSubject> list);

    List<TempSubject> selectTempSubject(@Param("userId")Integer userId );

    Integer updateByTorder(@Param("temporary")Temporary temporary);

    TestMsg getTestMsg(@Param("id") Integer id);

    TestMsg getTestMsgg(@Param("id")Integer id);

    Temporary findByUserId(@Param("id")Integer id);

    Integer deletesBytorder(@Param("torders")List<Integer> torders,@Param("id") Integer id);
}